/*
* Copyright© 2018 Shanxi Lu'an Taihang Laihui Net Tech co.,LTD.
*/
package com.laihuichuxing.train.dao;

import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 
 * Description: 火车票购票相关
 * @author: LiPengpeng
 * Version: 1.0
 * Create Date Time: 2018年5月3日 上午10:59:43.
 * Update Date Time: 
 * @see
 */
public interface TrainBuyOrderDao {

	/**
	 * createOrder
	 * @param map
	 * @return
     */
	int createOrder(Map<String, Object> map);

	/**
	 * createGrabOrder
	 * @param map
	 * @return
     */
	int createGrabOrder(Map<String, Object> map);

	/**
	 * insertOrder
	 * @param map
	 * @return
     */
	int insertOrder(Map<String, Object> map);

	/**
	 * selectOrderNo
	 * @param userId
	 * @param isEnable
     * @return
     */
	Map<String, Object> selectOrderNo(@Param("userId") String userId, @Param("isEnable") int isEnable);

	/**
	 * selectOrderStatus
	 * @param orderNo
	 * @param tableName
     * @return
     */
	Integer selectOrderStatus(@Param("orderNo") String orderNo, @Param("tableName") String tableName);

	/**
	 * insertPassenger
	 * @param map
	 * @return
     */
	int insertPassenger(@Param("param") Map<String, Object> map);

}
